<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        ashjdkashdjk
        <span>asda</span>
    </div>
    <script src="js/jquery-3.5.1.min.js"></script>
    <script>
        // 获得内容
        // console.log($('div').text(),  $('div').html());

        // 设置内容
        // $('div').text('nmbxcbvnmxb  <span>asda</span>')
        $('div').html('nmbxcbvnmxb  <span>asda</span>')

    </script>
</body>
</html>